home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "File Encoder / Decoder"
- ClientHeight = 4920
- ClientLeft = 2715
- ClientTop = 2535
- ClientWidth = 7845
- BeginProperty Font
- name = "Courier New"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 5325
- Left = 2655
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 4920
- ScaleWidth = 7845
- Top = 2190
- Width = 7965
- Begin VB.CommandButton cmdExit
- Caption = "E&xit"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 4800
- TabIndex = 4
- Top = 1200
- Width = 2775
- End
- Begin VB.CommandButton cmdDecode
- Caption = "&Decode File"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 4800
- TabIndex = 11
- Top = 720
- Width = 2775
- End
- Begin VB.CommandButton cmdEncode
- Caption = "&Encode File"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 4800
- TabIndex = 10
- Top = 240
- Width = 2775
- End
- Begin VB.Frame Frame1
- Caption = "Encoding / Decoding Type"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 1575
- Left = 240
- TabIndex = 5
- Top = 1320
- Width = 4215
- Begin VB.OptionButton optEncoding
- Caption = "Quoted-Printable"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 3
- Left = 240
- TabIndex = 9
- Top = 1080
- Width = 2200
- End
- Begin VB.OptionButton optEncoding
- Caption = "BinHex"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 2
- Left = 240
- TabIndex = 8
- Top = 840
- Width = 2200
- End
- Begin VB.OptionButton optEncoding
- Caption = "UU encode/decode"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 1
- Left = 240
- TabIndex = 7
- Top = 600
- Width = 2200
- End
- Begin VB.OptionButton optEncoding
- Caption = "Base64 (MIME)"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 6
- Top = 360
- Value = -1 'True
- Width = 2200
- End
- End
- Begin VB.TextBox txtDstFilename
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 240
- TabIndex = 2
- Text = "c:\temp\autoexec.ba2"
- Top = 960
- Width = 4215
- End
- Begin VB.TextBox txtSrcFilename
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 240
- TabIndex = 0
- Text = "c:\temp\autoexec.out"
- Top = 360
- Width = 4215
- End
- Begin MailLib.mMail Mail1
- Left = 0
- Top = 0
- _Version = 327680
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- Blocking = 0 'False
- Debug = 0
- Host = ""
- Timeout = 0
- ConnectType = 0
- PopPort = 110
- SmtpPort = 25
- End
- Begin VB.Label Label4
- Caption = "To decode a file, follow the same procedure as Encoding. Except, push the ""Decode File"" button."
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 240
- TabIndex = 13
- Top = 4320
- Width = 4215
- End
- Begin VB.Label Label3
- Caption = $"ENCODE.frx":0000
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 1215
- Left = 240
- TabIndex = 12
- Top = 3000
- Width = 4215
- End
- Begin VB.Label Label2
- Caption = "Destination Filename:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 3
- Top = 720
- Width = 3015
- End
- Begin VB.Label Label1
- Caption = "Source Filename:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 120
- Width = 1695
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdDecode_Click()
- If Trim(txtSrcFilename.Text) = "" Then
- MsgBox "You must specify a source filename."
- Exit Sub
- End If
- If Trim(txtDstFilename.Text) = "" Then
- MsgBox "You must specify a destination filename."
- Exit Sub
- End If
- Mail1.SrcFilename = txtSrcFilename.Text
- Mail1.DstFilename = txtDstFilename.Text
- Mail1.Flags = MailSrcIsFile Or MailDstIsFile
- If optEncoding(0).Value Then
- Mail1.ContentTransferEncoding = "base64"
- ElseIf optEncoding(1).Value Then
- Mail1.ContentTransferEncoding = "x-uuencode"
- ElseIf optEncoding(2).Value Then
- Mail1.ContentTransferEncoding = "mac-binhex40"
- ElseIf optEncoding(3).Value Then
- Mail1.ContentTransferEncoding = "quoted-printable"
- End If
- On Error Resume Next
- Err = 0
- Mail1.Action = MailActionDecode
- If Err = 0 Then
- MsgBox "Decoding complete."
- Else
- MsgBox "Decoding error (" & Err & ") - '" & Error & "'."
- End If
- On Error GoTo 0
- End Sub
- Private Sub cmdEncode_Click()
- If Trim(txtSrcFilename.Text) = "" Then
- MsgBox "You must specify a source filename."
- Exit Sub
- End If
- If Trim(txtDstFilename.Text) = "" Then
- MsgBox "You must specify a destination filename."
- Exit Sub
- End If
- Mail1.SrcFilename = txtSrcFilename.Text
- Mail1.DstFilename = txtDstFilename.Text
- Mail1.Flags = MailSrcIsFile Or MailDstIsFile
- If optEncoding(0).Value Then
- Mail1.ContentTransferEncoding = "base64"
- ElseIf optEncoding(1).Value Then
- Mail1.ContentTransferEncoding = "x-uuencode"
- ElseIf optEncoding(2).Value Then
- Mail1.ContentTransferEncoding = "mac-binhex40"
- ElseIf optEncoding(3).Value Then
- Mail1.ContentTransferEncoding = "quoted-printable"
- End If
- On Error Resume Next
- Err = 0
- Mail1.Action = MailActionEncode
- If Err = 0 Then
- MsgBox "Encoding complete."
- Else
- MsgBox "Encoding error (" & Err & ") - '" & Error & "'."
- End If
- On Error GoTo 0
- End Sub
- Private Sub cmdExit_Click()
- End
- End Sub
-